Component({
  properties: {
    item: {
      type: Object,
      value: {}
    }
  },
  methods: {
    replyComment () {
      this.triggerEvent('replyComment')
    },
    seeMore () {
      this.data.item.showMore = !this.data.item.showMore
      this.setData({
        'item.showMore': this.data.item.showMore
      })
    }
  },
  ready () {
    let query = this.createSelectorQuery()
    query.select('.comment-child-item').boundingClientRect(rect => {
      if (rect.height > 36 * 3) {
        this.setData({ 'item.showMore': true, 'item.showMoreBtn': true })
      }
    }).exec()
  }
})